import request from '/@/utils/request';

// 查询考勤的 调休假期列表
export function listWork(query?: Object) {
  return request({
    url: '/module/attendance/work/list',
    method: 'get',
    params: query
  })
}

// 查询考勤的 调休假期详细
export function getWork(id?: number) {
  return request({
    url: '/module/attendance/work/' + id,
    method: 'get'
  })
}

// 新增考勤的 调休假期
export function addWork(data?: Object) {
  return request({
    url: '/module/attendance/work',
    method: 'post',
    data: data
  })
}

// 修改考勤的 调休假期
export function updateWork(data?: Object) {
  return request({
    url: '/module/attendance/work',
    method: 'put',
    data: data
  })
}

// 删除考勤的 调休假期
export function delWork(id?: number) {
  return request({
    url: '/module/attendance/work/' + id,
    method: 'delete'
  })
}

// 导出考勤的 调休假期
export function exportWork(query?: Object) {
  return request({
    url: '/module/attendance/work/export',
    method: 'get',
    params: query
  })
}
